<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script src="/numberone/static/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
<title>派单规则</title>
<meta name="decorator" content="default" />
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
		
		$(document).ready(function() {
			contentType: "text/json; charset=utf-8";
			$("#testwo").click(function() {
				alert("Hello World click");
				var date = new Date();
				/* $.post('${ctx}/sys/testApi/addWo', {
					"asd" : "lalaq"
				}, function(data) {
					alert(data);
				},"json"); */
				var jsonString = {
					    "params": {
					        "tenantId": "100000",
					        "customLevel": "09",
					        "urgentDegree": "一般",
					        "customAttribution": "昆明",
					        "callerNo": "13788255047",
					        "acceptId": "20171206161350X309144480",
					        "faultDistrtId": "",
					        "preDealResult": "ReturnMessage",
					        "groupSrTypeId": "01010602050301",
					        "dealTime2": "2017-12-06 17: 32: 02",
					        "dealTime1": "2017-12-06 17: 32: 02",
					        "title": "个人投诉",
					        "bdeptContact": "13813871083",
					        "upgdCmplntsFlag": "否",
					        "respCityCode": "",
					        "faultCity": "德宏",
					        "lat": "",
					        "customerName": "王*",
					        "complaintType": "007002007002002002002",
					        "btype1": "云南测试",
					        "repeatComplaintTimes": "2",
					        "faultTime": "2017-12-0617: 32: 03",
					        "complaintNum": "13788255047",
					        "terminalType": "34",
					        "faultSite": "12",
					        "webTypeCd": "1",
					        "lngt": "",
					        "complaintDesc": "20171206161350X309144480",
					        "contactPhone": "15987153600",
					        "customBrand": "",
					        "bdeptContactPhone": "否",
					        "calledNo": "10086",
					        "lanAccount": "",
					        "complaintTime": "2017-12-06 16: 13: 50.0",
					        "startDealCity": "云南分公司",
					        "brdnetAddr": "",
					        "customPhone": "13788255047",
					        "provCode": "00030016"
					    },
					    "object": {
					        "opPerson": "云南测试",
					        "opTime": "2017-12-06 17: 32: 07",
					        "sheetType": "056",
					        "callTime": "2017-12-06 17:32:07",
					        "serSupplier": "00030016_EOMS",
					        "serCaller": "云南分公司",
					        "serviceType": "999",
					        "opCorp": "客户服务中心",
					        "serialNo": "20171206161350X309144482",
					        "callerPwd": "00000000",
					        "opContact": "13813871083",
					        "attachRef": [
					            {
					                "attachName": "ngcrmpf_gx.txt",
					                "attachPath": "afe66340-f1fe-439b-9f78-d3c7a5df55d8"
					            },
					            {
					                "attachName": "云南工单.txt",
					                "attachPath": "69cadda3-98e3-4113-b643-527e95f100f4"
					            }
					        ]
					    }
					}
					var jsObject = JSON.stringify(jsonString);
				$.ajax({
	                type: "post",
	                url: "${ctx}/sys/testApi/addWo",
	                data: jsObject,
	                dataType: 'json',
	                contentType: 'application/json;charset=utf-8',
	                success: function (data) {
	                	alert(data);
	                },
	            });

			})
		});
	</script>
</head>

<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/workOrderTest/index">派单规则</a></li>
		
	</ul>
	<button id="testwo" name="testwo">测试接收</button>
	
	<br>
	
</body>
</html>
